8ac818ad88c95661085feff1b276d99f339aeea8,controller/src/main/java/org/apache/ambari/controller/rest/agent/ControllerResource.java,ControllerResource,heartbeat,#HeartBeat#,70
Before Change
List<Command> cleanUps = new ArrayList<Command>();
String[] cleanUpCmd = { "ls", "-t" };
cleanUps.add(new Command("hdfs", cleanUpCmd));
cleanUps.add(new Command("hdfs", cleanUpCmd));
Action action = new Action();
action.setUser("hdfs");
action.setComponent("hdfs");
action.setRole("datanode");
action.setKind(Kind.STOP_ACTION);
action.setSignal(Signal.KILL);
action.setClusterId("cluster-001");
action.setBluePrintName("blueprint");
action.setBluePrintRevision("0.1");
action.setId("action-001");
Action action2 = new Action();
action2.setUser("hdfs");
action2.setKind(Kind.START_ACTION);
action2.setId("action-002");
action2.setClusterId("cluster-002");
action2.setCommands(commands);
action2.setCleanUpCommands(cleanUps);
action2.setComponent("hdfs");
action2.setBluePrintName("blueprint");
action2.setBluePrintRevision("0.2");
After Change
action2.setKind(Kind.START_ACTION);
action2.setId("action-002");
action2.setClusterId("cluster-002");
action2.setCommand(command);
action2.setCleanUpCommand(cleanUp);
action2.setComponent("hdfs");
action2.setBluePrintName("blueprint");